.class Lframent/FramentOrder2$3;
.super Ljava/lang/Object;
.source "FramentOrder2.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lframent/FramentOrder2;->selectedGoodsType(I)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lframent/FramentOrder2;

.field private final synthetic val$rootView:Landroid/view/View;


# direct methods
.method constructor <init>(Lframent/FramentOrder2;Landroid/view/View;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lframent/FramentOrder2$3;->this$0:Lframent/FramentOrder2;

    iput-object p2, p0, Lframent/FramentOrder2$3;->val$rootView:Landroid/view/View;

    .line 661
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 8
    .param p1, "arg0"    # Landroid/view/View;

    .prologue
    const v7, 0x7f0c0281

    const v6, 0x7f020090

    .line 666
    iget-object v4, p0, Lframent/FramentOrder2$3;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->beans2:Ljava/util/ArrayList;
    invoke-static {v4}, Lframent/FramentOrder2;->access$10(Lframent/FramentOrder2;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v4}, Ljava/util/ArrayList;->clear()V

    .line 668
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/Integer;

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v1

    .line 670
    .local v1, "idi":I
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v4, p0, Lframent/FramentOrder2$3;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->shoptype2Views:Ljava/util/ArrayList;
    invoke-static {v4}, Lframent/FramentOrder2;->access$34(Lframent/FramentOrder2;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-lt v0, v4, :cond_0

    .line 678
    iget-object v4, p0, Lframent/FramentOrder2$3;->val$rootView:Landroid/view/View;

    invoke-virtual {v4, v7}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 679
    .local v3, "textView":Landroid/widget/TextView;
    iget-object v4, p0, Lframent/FramentOrder2$3;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->context:Landroid/content/Context;
    invoke-static {v4}, Lframent/FramentOrder2;->access$2(Lframent/FramentOrder2;)Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4, v6}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setBackground(Landroid/graphics/drawable/Drawable;)V

    .line 681
    iget-object v4, p0, Lframent/FramentOrder2$3;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->m:Lmyapp/MyApp;
    invoke-static {v4}, Lframent/FramentOrder2;->access$11(Lframent/FramentOrder2;)Lmyapp/MyApp;

    move-result-object v4

    invoke-virtual {v4}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v4

    const-string v5, "1"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 682
    iget-object v4, p0, Lframent/FramentOrder2$3;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->context:Landroid/content/Context;
    invoke-static {v4}, Lframent/FramentOrder2;->access$2(Lframent/FramentOrder2;)Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f07001f

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setTextColor(I)V

    .line 688
    :goto_1
    const/4 v2, 0x0

    .local v2, "k":I
    :goto_2
    iget-object v4, p0, Lframent/FramentOrder2$3;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->goodsBeans:Ljava/util/ArrayList;
    invoke-static {v4}, Lframent/FramentOrder2;->access$20(Lframent/FramentOrder2;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-lt v2, v4, :cond_2

    .line 697
    iget-object v4, p0, Lframent/FramentOrder2$3;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->adapter:Lframent/FramentOrder2$GoodsAdapter;
    invoke-static {v4}, Lframent/FramentOrder2;->access$7(Lframent/FramentOrder2;)Lframent/FramentOrder2$GoodsAdapter;

    move-result-object v4

    invoke-virtual {v4}, Lframent/FramentOrder2$GoodsAdapter;->notifyDataSetChanged()V

    .line 699
    return-void

    .line 672
    .end local v2    # "k":I
    .end local v3    # "textView":Landroid/widget/TextView;
    :cond_0
    iget-object v4, p0, Lframent/FramentOrder2$3;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->shoptype2Views:Ljava/util/ArrayList;
    invoke-static {v4}, Lframent/FramentOrder2;->access$34(Lframent/FramentOrder2;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v4, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/view/View;

    invoke-virtual {v4, v7}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 673
    .restart local v3    # "textView":Landroid/widget/TextView;
    iget-object v4, p0, Lframent/FramentOrder2$3;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->context:Landroid/content/Context;
    invoke-static {v4}, Lframent/FramentOrder2;->access$2(Lframent/FramentOrder2;)Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4, v6}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setBackground(Landroid/graphics/drawable/Drawable;)V

    .line 674
    iget-object v4, p0, Lframent/FramentOrder2$3;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->context:Landroid/content/Context;
    invoke-static {v4}, Lframent/FramentOrder2;->access$2(Lframent/FramentOrder2;)Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f070006

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setTextColor(I)V

    .line 670
    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_0

    .line 684
    :cond_1
    iget-object v4, p0, Lframent/FramentOrder2$3;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->context:Landroid/content/Context;
    invoke-static {v4}, Lframent/FramentOrder2;->access$2(Lframent/FramentOrder2;)Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f070001

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_1

    .line 690
    .restart local v2    # "k":I
    :cond_2
    iget-object v4, p0, Lframent/FramentOrder2$3;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->goodsBeans:Ljava/util/ArrayList;
    invoke-static {v4}, Lframent/FramentOrder2;->access$20(Lframent/FramentOrder2;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lbean/GoodsBean;

    invoke-virtual {v4}, Lbean/GoodsBean;->getParent_id2()Ljava/lang/String;

    move-result-object v5

    iget-object v4, p0, Lframent/FramentOrder2$3;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->shoptype2:Ljava/util/ArrayList;
    invoke-static {v4}, Lframent/FramentOrder2;->access$21(Lframent/FramentOrder2;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v4, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lbean/ShoptypeBean;

    invoke-virtual {v4}, Lbean/ShoptypeBean;->getId()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_3

    .line 692
    iget-object v4, p0, Lframent/FramentOrder2$3;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->beans2:Ljava/util/ArrayList;
    invoke-static {v4}, Lframent/FramentOrder2;->access$10(Lframent/FramentOrder2;)Ljava/util/ArrayList;

    move-result-object v5

    iget-object v4, p0, Lframent/FramentOrder2$3;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->goodsBeans:Ljava/util/ArrayList;
    invoke-static {v4}, Lframent/FramentOrder2;->access$20(Lframent/FramentOrder2;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lbean/GoodsBean;

    invoke-virtual {v5, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 688
    :cond_3
    add-int/lit8 v2, v2, 0x1

    goto/16 :goto_2
.end method
